package com.sixbro.oauth2.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;

/**
 * @Author: Mr.Lu
 * @Since: 2020/6/14 22:56
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(of = "authority")
public class Authority implements GrantedAuthority {

    /**
     * 权限
     */
    private String authority;

    /**
     * 权限描述
     */
    private String desc;

}
